import Request from "@/utils/request";
import qs from 'qs';


// 用户协议
export  const getHasAgreement = () => Request.request("POST", "/api/agreements/hasAgreement").then((res) => res.data);


// 获取是否跳转其他小程序
export  const getIsJump = () => Request.request("GET", "/setting/isJump").then((res) => res.data);


export  const getSettingArgs = () => Request.request("GET", "/setting/agreements").then((res) => res.data);


export  const getSettingNeedCode = () => Request.request("GET", "/setting/needCode").then((res) => res.data);

export  const getSetting = () => Request.request("GET", "/setting/setting").then((res) => res.data);

export  const putSetttingPoint = (data) => Request.request("GET", `/setting/point?${qs.stringify(data)}`).then((res) => res.data);